using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Book
/// </summary>
public class Book
{
	

		//
		// TODO: Add constructor logic here
		//
    int bookid = -1;
    BookCategory category;
        string name;
    string author;
        decimal price;
    string imageURL;
    string note;
    byte isRecommended;
    int rating;
    int rating_count;
    public Book()
    {
        category = new BookCategory();
        name = "";
        price=0;
        imageURL = "";
        note = "";
        isRecommended = 0;
        rating = 0;
        rating_count = 0;
    }

    public int BookID
    {
        get { return bookid; }
        set { bookid = value; }
    }
    public BookCategory Category
    {
        get { return category; }
        set { category = value; }
    }
    public string Name
    {
        get { return name; }
        set { name = value; }
    }
    public string Author
    {
        get { return author; }
        set { author = value; }
    }
    public decimal Price
    {
        get { return price; }
        set { price = value; }
    }
    public string ImageURL
    {
        get { return imageURL; }
        set { imageURL = value; }
    }
    public string Note
    {
        get { return note; }
        set { note = value; }
    }
    public byte IsRecommended
    {
        get { return isRecommended; }
        set { isRecommended = value; }
    }
    public int Rating
    {
        get { return rating; }
        set { rating = value; }
    }
    public int RatingCount
    {
        get { return rating_count; }
        set { rating_count = value; }
    }
}
